import request from '@/utils/request'
import qs from 'qs'
export function getWorkspaces(params) {
  return request({
    url: '/eff/tapd/workspaces/',
    method: 'get',
    params
  })
}

export function getStories(params) {
  return request({
    url: '/eff/tapd/stories/',
    method: 'get',
    params,
    paramsSerializer: params => {
      return qs.stringify(params, { indices: false })
    }
  })
}

export function getServices(params) {
  return request({
    url: '/eff/tapd/services/',
    method: 'get',
    params
  })
}

export function getTPlans(params) {
  return request({
    url: '/eff/tapd/tplans_cases/',
    method: 'get',
    params
  })
}
